package lc.oa.ui.adapter;

import android.widget.TextView;

import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.RecyclerView;

import lc.oa.R;

class ViewHolder extends RecyclerView.ViewHolder {
    private TextView title;
    private TextView description;

    public TextView getTitle() {
        return title;
    }

    public void setTitle(TextView title) {
        this.title = title;
    }

    public TextView getDescription() {
        return description;
    }

    public void setDescription(TextView description) {
        this.description = description;
    }

    //(ConstraintLayout layout) ext RecyclerView.ViewHolder(layout) {
    public ViewHolder(ConstraintLayout layout) {
        super(layout);
        title = layout.findViewById(R.id.title);
        description = layout.findViewById(R.id.description);
    }

    // @Override
    public int getItemCount() {
        return 10;
    }
}
